﻿--[[
   @brief    message box 社交消息盒子逻辑
   @author   hqzhneg
   @version  1.0
   @date     2017-02-13
--]]

message_box_desc = 
{
    module_name = "message_box",
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECEIVE_GROUP_REPORT,
                    callback = "message_box_control.recv_group_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_REPORT_JOIN_GROUP,
                    callback = "message_box_control.report_join_group_rsp"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_REPORT_ADD_FRIEND,
                    callback = "message_box_control.report_add_friend_rsp"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "message_box_control.recv_friend_report"
                },
--                {
--                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
--                    callback = "message_box_control.on_im_inited"
--                },
            },
            lua_event = 
            {
            },
            listen_broadcast = 
            {
                {
                    id = "i_broadcast_im_app_on_get_group_public_info",
                    callback = "message_box_control.on_get_group_public_info"
                },
                {
                    id = "i_broadcast_msg_box_user_action",
                    callback = "message_box_control.handle_msg_box_user_action"
                },
            },
            lua_file = "social\\message_box\\control.lua"
        },
    },
}

desc_mgr.add(message_box_desc)